def sumNum(num):
    if num == 100:
        return 1
    else:
        sum = num + sumNum(num - 1)
        return sum

a = sumNum(int(input('输入一个数')))
print(a)